function X_rec = recoverData(Z, U, K)
%RECOVERDATA Recovers an approximation of the original
%data when using the projected data
%   X_rec = RECOVERDATA(Z, U, K) recovers an approximation of the
%   original data that has been reduced to K dimensions. It returns
%   the approixmate reconstruction in X_rec.
X_rec = Z * U(:, 1:K)';
end